package com.zixi.cloud.ai.server.service.impl;

import com.zixi.cloud.ai.common.exception.ZxAppException;
import com.zixi.cloud.ai.server.service.IZxBaseService;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.Map;
import java.util.Set;

/**
 * @author wfg
 */
@Service
public class ZxBaseService implements IZxBaseService {
    @Override
    public Set<Map<String, String>> getDashScope() {
        Set<Map<String, String>> resultSet;
        try {
            resultSet = ModelsUtils.getDashScopeModels();
        } catch (IOException e) {
            throw new ZxAppException("Get DashScope Model failed, " + e.getMessage());
        }

        return resultSet;
    }
}
